package controller

import (
	"net/http"
	"study_abroad_system_back_end/middlewares"
	"study_abroad_system_back_end/response"
	"study_abroad_system_back_end/common/StatusCode"
	"github.com/gin-gonic/gin"
)

func TotalVisits(ctx *gin.Context){
	code := StatusCode.SUCCESS

	response.Response(ctx, http.StatusOK, code, gin.H{"total_visits": middlewares.GetTotalVisits()}, StatusCode.GetMsg(code))
}